#include"Protocol.hpp"
#pragma once
class Task
{
private:
    int sock_;
    Callback cb;
public: 
    Task()
    {}
    Task(int sock)
    :sock_(sock)
    {}
    //执行任务
    void ProcessOn()
    {
        cb(sock_);
    }
    ~Task()
    {}

};